#include "../src/PoseGL.hpp"
#include "../src/DataReader.hpp"
#include <chrono>

using namespace std::chrono_literals;

int main()
{
  DataReader reader("output_3d.txt");
  PoseGL gl;
  auto list=reader.coodList;
  int i=0;
  gl.ShowPose(list[0]);
  gl.MultiThreadRun();
  while(!gl.isExit())
  {
    gl.ShowPose(list[i]);
    std::this_thread::sleep_for(0.1s);
    i++;
    if(i==list.size())
      i=0;
  }
}
